package com.cskaoyan.controller.wxcontroller;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.chaosbean.user.vo.WxUserIndexVO;
import com.cskaoyan.service.wxservice.UserWeChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 楚夏三分
 * @datetime 2023/1/3 7:23
 * @description: TODO:
 */
@RestController
@RequestMapping("wx/user")
public class UserWeChatController {
    @Autowired
    UserWeChatService wxUserService;

    @GetMapping("index")
    public BaseRespVo userIndex(){
        WxUserIndexVO wxUserIndexVO = wxUserService.userIndex();
        return BaseRespVo.okYa(wxUserIndexVO);
    }
}
